package spring.entity;

import spring.component.MyComponent;
import spring.component.MyValue;
import spring.component.Myname;

import java.util.Date;

/**
 * User  yyl
 * Description: mySpring
 * Created by yaoyonglong on 2018/11/1 9:40
 */
@MyComponent(scope = "prototype")
@Myname(name="prototypeUser")
public class PrototypeUser {

    @MyValue("2")
    private Integer id;

    @MyValue("我是多列模式")
    private String name;

    @MyValue("psw")
    private String psw;

    @MyValue("2018-10-09")
    private Date date;


    @Override
    public String toString() {
        return "PrototypeUser{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", psw='" + psw + '\'' +
                ", date=" + date +
                '}';
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public PrototypeUser() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }
}
